package com.fivestar.finance.app.bean.resp;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by hjd on 2016/5/26.
 */
public class DriverResp implements Serializable, Parcelable {

    String userId;//用户id
    String driverName;//司机名称
    String portraitPic;//司机头像
    int cardAuthenState;//身份是否认证
    int carAuthenState;//车辆是否认证
    double validiMoney;//可提现金额
    double score;//综合评分

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getPortraitPic() {
        return portraitPic;
    }

    public void setPortraitPic(String portraitPic) {
        this.portraitPic = portraitPic;
    }

    public int getCardAuthenState() {
        return cardAuthenState;
    }

    public void setCardAuthenState(int cardAuthenState) {
        this.cardAuthenState = cardAuthenState;
    }

    public int getCarAuthenState() {
        return carAuthenState;
    }

    public void setCarAuthenState(int carAuthenState) {
        this.carAuthenState = carAuthenState;
    }

    public double getValidiMoney() {
        return validiMoney;
    }

    public void setValidiMoney(double validiMoney) {
        this.validiMoney = validiMoney;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userId);
        dest.writeString(this.driverName);
        dest.writeString(this.portraitPic);
        dest.writeInt(this.cardAuthenState);
        dest.writeInt(this.carAuthenState);
        dest.writeDouble(this.validiMoney);
        dest.writeDouble(this.score);
    }

    public DriverResp() {
    }

    protected DriverResp(Parcel in) {
        this.userId = in.readString();
        this.driverName = in.readString();
        this.portraitPic = in.readString();
        this.cardAuthenState = in.readInt();
        this.carAuthenState = in.readInt();
        this.validiMoney = in.readDouble();
        this.score = in.readDouble();
    }

    public static final Creator<DriverResp> CREATOR = new Creator<DriverResp>() {
        @Override
        public DriverResp createFromParcel(Parcel source) {
            return new DriverResp(source);
        }

        @Override
        public DriverResp[] newArray(int size) {
            return new DriverResp[size];
        }
    };
}
